﻿using System;
using FluentValidation.Results;
using FluentValidation.Validators;

namespace FluentValidation.Tests
{
    public static class TestHelpers
    {

        public static void OutputErrorsToConsole(ValidationResult results)
        {
            foreach (var error in results.Errors)
            {
                Console.WriteLine(error.ErrorMessage);
            }
        }

        public static void OutputErrorToConsole(PropertyValidatorResult result)
        {
            Console.WriteLine(result.Error);
        }
    }
}
